<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	  

<h:head lang="pt">

<title>Cadastro de Alunos</title>


</h:head>

<h:body   lang="pt">


	<h:form id="formConta">
		<p:panel id="panelSalvaConta" header="Cadastro de Alunos">
         
			<p:messages ajax="true"  id="mensagem" showDetail="true" closable="true" />
			<h:panelGrid columns="2">

				<h:outputLabel value="Nome:" />
				<p:inputText id="txtNome" value="#{AlunoBean.aluno.nome}" />
				
				<h:outputLabel value="Endereço:" />
				<p:inputText id="txtEnd" value="#{AlunoBean.aluno.endereco}" />
				
				<h:outputLabel value="Numero:" />
				<p:inputText id="txtNum" value="#{AlunoBean.aluno.numero}" />
				
				<h:outputLabel value="Bairro:" />
				<p:inputText id="txtBairro" value="#{AlunoBean.aluno.bairro}" />
				
				<h:outputLabel value="Telefone:" />
				<p:inputText id="txtTel" value="#{AlunoBean.aluno.telefone}" />
				
				<h:outputLabel value="Email:" />
				<p:inputText id="txtEmail" value="#{AlunoBean.aluno.email}" />
				
				

		</h:panelGrid>
	 <p:commandButton value="Salva" action="#{AlunoBean.salva()}" update="@form"  />
		
		
		</p:panel>
	
	</h:form>
	
</h:body>
</html>